package handler

import (
	"src/db/db_modle"
	"src/handler/t1_1"
	"src/handler/t1_2"
	"src/modle"
	"sync"
)

// 各个指标id与对应执行方法
var OptMap = map[uint]func(*chan modle.DetailsType, *sync.WaitGroup, uint, db_modle.RiskRuleBase){
	1:  t1_1.CheckUserAge,
	2:  t1_1.CheckIdOnOneBank,
	3:  t1_1.CheckPhoneNumOnOneBank,
	4:  t1_1.CheckIdCard,
	5:  t1_1.CheckUserContacts,
	6:  t1_2.CheckNumOfLoansInContacts,
	7:  t1_2.CheckNumOfOverdueInContacts,
	8:  t1_2.CheckNumOfLoansApp,
	9:  t1_2.CheckI386AndX86,
	10: t1_2.CheckNumOfAccountRegisteredIn30DaysWithSameImei,
	11: t1_2.CheckNumOfAccountRegisteredIn7DaysWithSameImei,
	12: t1_2.CheckNumOfAccountRegisteredIn30DaysWithSameMac,
	13: t1_2.CheckNumOfAccountRegisteredIn7DaysWithSameMac,
	14: t1_2.CheckOverdueForUrgencyContact,
	15: t1_2.CheckUrgencyContactRepeat,
	16: t1_2.CheckCallRecordLengthIn30Days,
	17: t1_2.ApplyTimeCheck,
	18: t1_2.CheckTouchNumOfUrgencyContactIn7Days,
	19: t1_2.CheckOverdueOfUser,
	20: t1_2.CheckLastOrderOverdue,
}
